<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="wangbo">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>react 传值 </title>
</head>
<body>
    <div id="app"></div>
    <script src="../js/react.development.js"></script>
    <script src="../js/react-dom.development.js"></script>
    <script src="../js/babel.min.js"></script>
    <script type="text/babel">
    // 在react 里边所有的属性 都会给props 这个类,变成的这个类的
    function Person(props) {
        return <h1>我是传递的值{props.name} </h1>
        
    }
    ReactDOM.render(<Person  name="张三" />,document.getElementById('app'))
    </script>
</body>
</html>